<%@ page import="org.springframework.context.ApplicationContext" %><%--
  Created by IntelliJ IDEA.
  User: HelloKitty
  Date: 2021/5/25
  Time: 18:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <%-- 用以说明主页制作所使用的文字以及语言 --%>
    <meta http-equiv="Content-Type" content="text/html" charset='UTF-8"'>
    <meta http-equiv="Content-Language" content="zh-CN">
    <title>首页</title>
    <%-- 获取项目路径 --%>
    <% ServletContext servletContext = request.getSession().getServletContext();
    servletContext.setAttribute("projectClassPath",request.getContextPath());%>
</head>
<body>
    <a href="/hello">HelloWorld</a><br/>
    <%-- 测试拦截器 --%>
    <a href="${projectClassPath}/test01">test01</a><br/>

</body>
</html>
